<script setup lang="ts">
import "@/assets/font.css"
import Blog_login_form from "@/components/admin/blog_login_form.vue";
import router from "@/router";

function ok() {
  let back = window.history.state.back
  if (back === null) {
    router.push({name: "admin_home"})
  } else {
    router.push(back)
  }
}
</script>

<template>
  <div class="blog_login">
    <div class="blog_login_mask">
      <blog_login_form @ok="ok"></blog_login_form>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.blog_login {
  background: url("/image/bg.png") 50%/cover no-repeat;
  width: 100%;
  height: 100vh;

  .blog_login_mask {
    position: absolute;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: var(--login_bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
  }
}
</style>
